<?php  
require_once $_SERVER['DOCUMENT_ROOT'] . '/accHestia/src/svr/com/acc_flock.php';
function get_voch_zi_option_list() {
    $hdl_file = acc_lock("lock_key_acc_db");
    $pdb = new acc_DB();
    $result = $pdb->q("select * from vochzi");
    $str = "";
    while($row = $result->fetchArray(SQLITE3_ASSOC)){
        $str .= '<option value="' . $row['id'] . '">' . $row['name'] . '</option>';
    }
    $pdb->d();
    acc_unlock($hdl_file);
    return $str;
}
?>